(function(e){"use strict";BX.addCustomEvent("BX.Landing.Block:init",(function(e){var o=e.makeRelativeSelector(".js-countdown");var a=e.block.querySelectorAll(o);if(a.length>0){t(o)}}));BX.addCustomEvent("BX.Landing.Block:Node:updateAttr",(function(e){var o=e.makeRelativeSelector(".js-countdown");var a=e.block.querySelectorAll(o);if(a.length>0&&"data"in e&&"data-end-date"in e.data){t(o)}}));BX.addCustomEvent("BX.Landing.Block:Card:add",(function(e){var o=e.makeRelativeSelector(".js-countdown");var a=e.block.querySelectorAll(o);if(a.length>0){t(o)}}));function t(t){var a=e.HSCore.components.HSCountdown.init(t,{yearsElSelector:".js-cd-years",monthElSelector:".js-cd-month",daysElSelector:".js-cd-days",hoursElSelector:".js-cd-hours",minutesElSelector:".js-cd-minutes",secondsElSelector:".js-cd-seconds"});a.on("update.countdown",o)}function o(t){var a=e(this);if(a.data("days-expired-classes")){if(t.offset.totalDays<=0){a.addClass(a.data("days-expired-classes"));a.off("update.countdown",o)}else{a.removeClass(a.data("days-expired-classes"))}}}})(window.jQueryLanding||jQuery);
//# sourceMappingURL=countdown_init.map.js